package com.my.selectcoursesystem.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "teacher")
public class Teacher {
    @Id
    @Column(name = "t_id")
    private String tid;
    @Column(name = "t_name")
    private String tname;
    @Column(name = "t_password")
    private String tpassword;
    @Column(name = "t_sex")
    private String tsex;
    @Column(name = "t_code")
    private String  tcode;
    @Column(name = "college")
    private String college;

    public Teacher(String tid, String tname, String tpassword, String tsex, String tcode, String college) {
        this.tid = tid;
        this.tname = tname;
        this.tpassword = tpassword;
        this.tsex = tsex;
        this.tcode = tcode;
        this.college = college;
    }

    public Teacher() {
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getTpassword() {
        return tpassword;
    }

    public void setTpassword(String tpassword) {
        this.tpassword = tpassword;
    }

    public String getTsex() {
        return tsex;
    }

    public void setTsex(String tsex) {
        this.tsex = tsex;
    }

    public String getTcode() {
        return tcode;
    }

    public void setTcode(String tcode) {
        this.tcode = tcode;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }
}
